using System.ComponentModel.DataAnnotations;
using Order.Domain.Enum;

namespace Order.Api.Write.Dto.Refund
{
    /// <summary>
    /// 退款状态更新命令
    /// </summary>
    public class RefundStatusUpdateCommand
    {
        /// <summary>
        /// 退款ID
        /// </summary>
        [Required(ErrorMessage = "退款ID不能为空")]
        public int RefundId { get; set; }

        /// <summary>
        /// 目标状态
        /// </summary>
        [Required(ErrorMessage = "目标状态不能为空")]
        public RefundStatusEnum TargetStatus { get; set; }

        /// <summary>
        /// 处理备注
        /// </summary>
        [StringLength(500, ErrorMessage = "处理备注长度不能超过500个字符")]
        public string? Remark { get; set; }
    }
}